= simple_form_for(@firm_detail, url:'/sales/firms/detail_save', method: :post, remote: true) do |f|
  = f.input :firm_id, as: :hidden
  = f.input :id, as: :hidden
  table.table.table-bordered
    tr
      th style='width:100px' 法人
      td= f.input_field :legal_person, class: 'form-control'
      th style='width:100px' 注册资金
      td
        = f.input_field :register_money, class: 'form-control normal-input'
        = f.input_field :register_money_type, class: 'form-control normal-input'
    tr
      th 注册时间
      td= f.input_field :register_time, as: :string, class: 'form-control js-datetimepicker', data: {'date-format': 'Y-M'}
      th 行业
      td= f.input_field :business_type, class: 'form-control'
    tr
      th 经营范围
      td= f.input_field :business_area, as: :text, class: 'form-control'
      th 备注
      td= f.input_field :notes, as: :text, class: 'form-control'
  .row
    .col-xs-12
      .pull-right
        = f.button :submit, value: '保存', class: 'btn btn-primary push-10-r'
        = link_to '关闭', 'javascript:void(0)', class: 'btn btn-default', data: {dismiss: 'modal'}